package com.yupi.springbootinit;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 主类（项目启动入口）
 *
 */
@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
@MapperScan(basePackages = {"com.yupi.springbootinit.mapper", "com.yupi.springbootinit.share.utils.mapper"})
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
        System.out.println("启动成功！！！");
        System.out.println(  "  ^    ^\n" +
                " / \\  / \\\n" +
                "( o )( o )\n" +
                " \\  /\\_//\\\n" +
                "  \\__/   \\__\n" +
                "    ||    ||\n" +
                "   (_)_  (_)\n" +
                "     |\\  /|\n" +
                "     | \\/ |\n" +
                "     |    |\n" +
                "     |    |\n" +
                "    / \\  / \\\n" +
                "   (____)(___)\n" );
    }

}
